import request from '@/utils/request';
/******* 预排计划 ******/
// 预排计划
export function getPrePlan(query) {
  return request({
    url: '/prePlan/queryPrePlan',
    method: 'POST',
    data: query
  });
}
// 新增预排计划
export function addPrePlan(query) {
  return request({
    url: '/prePlan/releasePrePlan',
    method: 'POST',
    data: query
  });
}
// 取消预排计划
export function cancelPrePlan(query) {
  return request({
    url: '/prePlan/deletePrePlanByOrder',
    method: 'POST',
    data: query
  });
}
/******* 日计划 ******/
// 查询日计划
export function getDailyPlan(query) {
  return request({
    url: '/dailyPlan/queryDailyPlan',
    method: 'POST',
    data: query
  });
}
// 新增日计划
export function addXishaPlan(query) {
  return request({
    url: '/dailyPlan/addDailyPlan',
    method: 'POST',
    data: query
  });
}
// 新增日计划-络筒
export function addLuotongPlan(query) {
  return request({
    url: '/dailyPlan/addDailyPlanLt',
    method: 'POST',
    data: query
  });
}
// 新增日计划-前纺
export function addQianfangPlan(query) {
  return request({
    url: '/dailyPlan/addDailyPlanQf',
    method: 'POST',
    data: query
  });
}
// 修改日计划
export function editXishaPlan(query) {
  return request({
    url: '/dailyPlan/modifyDailyPlan',
    method: 'POST',
    data: query
  });
}
// 修改络筒日计划
export function editLuotongPlan(query) {
  return request({
    url: '/dailyPlan/modifyDailyPlanLt',
    method: 'POST',
    data: query
  });
}
// 修改前纺日计划
export function editQianfangPlan(query) {
  return request({
    url: '/dailyPlan/modifyDailyPlanQf',
    method: 'POST',
    data: query
  });
}
// 删除日计划
export function delXishaPlan(query) {
  return request({
    url: '/dailyPlan/deleteDailyPlan',
    method: 'POST',
    data: query
  });
}
// 查询机台情况
export function getDevSn(query) {
  return request({
    url: '/dailyPlan/queryDevSnAndStatusXs',
    method: 'POST',
    data: query
  });
}
